
public class Test {
    public static void main(String[] args) {
        BinarySearchTree binarySearchTree=new BinarySearchTree();
        binarySearchTree.insert(15);
        binarySearchTree.insert(5);
        binarySearchTree.insert(3);
        binarySearchTree.insert(20);
        binarySearchTree.insert(7);
        binarySearchTree.insert(10);
        //BinarySearchTree.TreeNode ret=binarySearchTree.search(15);
        //System.out.println(ret.val);
        binarySearchTree.remove(7);
    }
}
